package com.jthinker.blog.service;

import com.jthinker.blog.bean.vo.UserWrapper;

import javax.servlet.http.HttpServletRequest;

/**
 * User: Gang Chen
 * Date: 2015/8/5 19:04
 */
public interface UserInfoService
{
    UserWrapper login(String username, String password, HttpServletRequest request);

    boolean logout(HttpServletRequest request);

    UserWrapper getCurrentUser(HttpServletRequest request);

    int updatePassword(UserWrapper wrapper, String oldPassword, String newPassword);
}
